<?php 
	session_start();
	$session = new Session();
	
	header('Access-Control-Allow-Origin: *');
	
	$getParameters = array_keys($_GET); 
	
	/**
	 * @package WordPress
	 * @subpackage Toolbox
	 */
	global $page, $paged,$wpdb;
	
	// Définition des variables globales
	$templateDirectory = get_bloginfo( 'template_directory' );
 ?>
<!DOCTYPE html>

<html <?php language_attributes(); ?>>
	<head>
		<meta charset="<?php bloginfo( 'charset' ); ?>" />
		<meta name="description" content="Weebeet - Parions Ensemble, est le premier réseau social pour parieurs, venez partager vos pronostics et en discuter avec d'autres experts.">
		<meta name="author" content="Kévin Samyn">
		<meta name="keywords" content="Paris Sportifs, Football, Rugby, Handball, Basket Ball, Pronostics, Prono, Ligue 1, L1, Ligue des Champions, Paris en ligne, Arjel, Sports, Sport, Foot, Basket, Pariez">

		<title>Weebeet - Parions Ensemble</title>
		
		<html xmlns:fb="http://ogp.me/ns/fb#">
		<?php include("opengraphGenerator.php"); ?>
		
		<!--[if lt IE 9]>
		<script src="<?php bloginfo( 'template_directory' ); ?>/javascripts/html5Compatibilite.js" type="text/javascript"></script>
		<![endif]-->
		
		<script src="<?php bloginfo( 'template_directory' ); ?>/javascripts/validationFormulaire.js" type="text/javascript"></script>
		<script src="<?php bloginfo( 'template_directory' ); ?>/javascripts/jquery/jquery.js" type="text/javascript"></script>
		<script src="<?php bloginfo( 'template_directory' ); ?>/javascripts/jquery/jquery-livequery.js" type="text/javascript"></script>
		<script src="<?php bloginfo( 'template_directory' ); ?>/javascripts/jquery/jquery-ui.js" type="text/javascript"></script>
		<script src="<?php bloginfo( 'template_directory' ); ?>/javascripts/jquery/jquery-tiptip.js" type="text/javascript"></script>
		<script src="<?php bloginfo( 'template_directory' ); ?>/javascripts/jquery/jquery-switcher.js" type="text/javascript"></script>
		<script src="<?php bloginfo( 'template_directory' ); ?>/javascripts/jquery/jquery-coinslider.js" type="text/javascript"></script>
		<script src="<?php bloginfo( 'template_directory' ); ?>/javascripts/highcharts/highcharts.js" type="text/javascript"></script>

		<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/style/generic/style.css" />
		<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/style/jquery/jquery-ui.css" />
		<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/style/jquery/jquery-tiptip.css" />
		<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/style/jquery/jquery-switcher.css" />
		<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_directory' ); ?>/style/jquery/jquery-coinslider.css" />
		
		<?php //wp_head(); ?>
		
		<script type='text/javascript'> var $j = jQuery.noConflict(); </script>
	</head>

	<body>
		<!-- FACEBOOK SCRIPT -->
		<div id="fb-root"></div>
		<script>(function(d, s, id) {
		  var js, fjs = d.getElementsByTagName(s)[0];
		  if (d.getElementById(id)) {return;}
		  js = d.createElement(s); js.id = id;
		  js.src = "//connect.facebook.net/fr_FR/all.js#xfbml=1";
		  fjs.parentNode.insertBefore(js, fjs);
		}(document, 'script', 'facebook-jssdk'));</script>	
			
		<div id="div_page"> 			
			<div id="div_header">
				<?php include 'header/headerView.php'; ?>
			</div>
			<div id="div_middle">
				<?php include '/views/'.$getParameters[0].'View.php'; ?>
				